package com.mlz.mlzmall.ui.utils.mlz;

/**
 * 功能描述：数据请求链接【有标注为get的为get请求方式，没有标注的为post】
 * Created by benny on 2016/5/7.
 * ProjectName：mlzMall.
 */
//
public  class URL {

    private static final String BASE = "http://app.mlzmall.com/api/";
//    private static final String BASE = "http://api.mlzmall.com/api/";

    public static final class ADDRESS {
        private static final String GROUP = BASE + "address/";//地址

        public static final String ADD = GROUP + "add";//新建收货地址
        public static final String EDIT = GROUP + "edit";//编辑收货地址
        public static final String DETAIL = GROUP + "info";//根据地址ID获取地址详情(get)
        public static final String LIST = GROUP + "list";//获取地址列表(get)
        public static final String REMOVE = GROUP + "remove";//删除地址
        public static final String DEFAULT = GROUP + "setDefault";//设为默认收货地址
    }
    public static final class CART {
        private static final String GROUP = BASE + "cart/";//相品操作有关的地址

        public static final String LIST = GROUP + "info";//获取购物车信息(get)
        public static final String TOTAL_QTY = GROUP + "quantity";//获取购物车商品总数(get)

        public static final String ADD = GROUP + "add";//添加商品到购物车
        public static final String REMOVE = GROUP + "remove";//删除购物车商品
        public static final String REMOVE_ALL = GROUP + "removeAll";//删除所有购物车商品
        public static final String EDIT_QTY = GROUP + "editQuantity";//编辑购物车商品数量

        public static final String SELECT = GROUP + "select";//选中购物车商品
        public static final String SELECT_ALL = GROUP + "selectAll";//选中所有购物车商品
        public static final String UNSELECT = GROUP + "unselect";//取消选中购物车商品
        public static final String UNSELECT_ALL = GROUP + "unselectAll";//取消选中所有购物车商品

        public static final String BUY_NOW = GROUP + "buyNow";//立即购买商品
        public static final String PREPARE_ORDER = GROUP + "confirm";//确认订单信息视图(get)
        public static final String SET_ADDRESS = GROUP + "setAddress";//设置地址
        public static final String SET_COUPON = GROUP + "applyCoupon";//使用优惠劵
        public static final String CREATE_ORDER = GROUP + "checkout";//生成订单
    }

    public static final class COMMON {
        private static final String GROUP = BASE + "common/";

        public static final String GET_PAY_METHOD = GROUP + "getPayMethod";//获取可支付类型（get）
    }

    public static  class CUSTOMER {
        private static final String GROUP = BASE + "customer/";//和用户相关的Api

        public static final String LOGIN = GROUP + "login";//登陆
        public static final String LOGIN_3RD_PARTY = GROUP + "oauthlogin";//第三方登陆
        public static final String LOGIN_RETURN = GROUP + "appLogin";//app登陆
        public static final String LOGOUT = GROUP + "logout";//登出/退出/注销登陆(get)

        public static final String SEND_SMS = GROUP + "sendSms";//发送手机验证码

        public static final String VERIFY_REGISTER = GROUP + "verifyRegist";//验证注册
        public static final String REGISTER = GROUP + "regist";//注册

        public static final String VERIFY_RESET_PWD = GROUP + "verifyForget";//找回密码-验证找回密码手机号
        public static final String RESET_PWD = GROUP + "resetPassword";//找回密码-重设密码

        public static final String BINDING_3RD_PARTY = GROUP + "oauthBinding";//第三方登陆绑定

        public static final String INFO = GROUP + "info";//获取用户信息(get)
        public static final String EDIT_INFO = GROUP + "editProperties";//修改用户信息
        public static final String EDIT_NAME = GROUP + "editName";//修改用户名称
        public static final String EDIT_PHOTO = GROUP + "setCustomerPortraitByString";//以字符串方式发送头像数据
        public static final String EDIT_PWD = GROUP + "updatePassword";//修改密码
    }

    public static final class INDEX {
        private static final String GROUP = BASE + "index/";//首页请求API

        public static final String PROMOTION = GROUP + "promotion";//获取首页活动（get）
        public static final String MANUFACTURERS = GROUP + "manufacturers";//获取首页品牌列表(get)
    }

    public static final class MANUFACTURER {
        private static final String GROUP = BASE + "manufacturer/";//品牌API

        public static final String INFO = GROUP + "info";//获取品牌详情get
        public static final String PRODUCTS = GROUP + "products";//获取品牌商品get
    }

    public static final class ORDER {
        private static final String GROUP = BASE + "order/";//订单API

        public static final String LIST = GROUP + "list";//获取订单列表get
        public static final String DETAIL = GROUP + "info";//获取订单get
        public static final String CANCEL = GROUP + "cancel";//取消订单
        public static final String DELIVER = GROUP + "confirmReceipt";//确认收货
        public static final String ROUTE = GROUP + "route";// 物流跟踪信息

        public static final class REVIEW {
            private static final String SUB_GROUP = GROUP + "review/";

            public static final String ADD = SUB_GROUP + "add";
            public static final String GET_NEED_REVIEW_PRODUCTS = SUB_GROUP + "getNeedReviewProducts";//获取需要评价的商品（get）
            public static final String UPLOAD_IMAGE = SUB_GROUP + "uploadImage";
            public static final String UPLOAD_IMAGE_BYSTRING = SUB_GROUP + "uploadImageByString";
        }
    }

    public static final class PAY {
        private static final String GROUP = BASE + "pay/";

        public static final class ALIPAY {
            private static final String SUB_GROUP = GROUP + "alipay/";//支付宝

            public static final String APPPAY = SUB_GROUP + "appPay";//app起支付
            public static final String NOTIFY = SUB_GROUP + "notify";//付款通知接口
            public static final String PAY = SUB_GROUP + "pay";//付款
        }

        public static final class EHKING {
            private static final String SUB_GROUP = GROUP + "ehking/";//易宝支付

            public static final String PAY = SUB_GROUP + "buildOrder";//app发起支付
          //public static final String NOTIFY = SUB_GROUP + "notify";//支付通知
            //public static final String QUERY = SUB_GROUP + "query";//支付状态查询
        }

        public static final class WECHAT {
            private static final String SUB_GROUP = GROUP + "wechat/";//微信支付

            public static final String PAY = SUB_GROUP + "appPay";//发起支付
            //public static final String NOTIFY = SUB_GROUP + "notify";//微信支付结果通知
            //public static final String QUERY = SUB_GROUP + "query";//支付状态查询
        }
    }

    public static final class POINT {
        private static final String GROUP = BASE + "point/";//积分

        public static final String INFO = GROUP + "info";//获取积分信息（get）
        public static final String LIST = GROUP + "history";//获取积分历史（get）
    }

    public static final class PRODUCT {
        private static final String GROUP = BASE + "product/";

        public static final String INFO = GROUP + "info";//商品信息（get）
        public static final String REVIEW = GROUP + "review";//（get）
        public static final String RECOMMAND = GROUP + "guessYouLike";//猜你喜欢（get）
        public static final String GETALLTAGS = GROUP + "getAllTags";
    }

    public static final class PROMOTION {
        private static final String GROUP = BASE + "promotion/";//促销活动

        public static final String ENROLL_PROMOTION = GROUP + "enrollPromotion";//参加商品抽奖活动
        public static final String GET_PROMOTION_GIFT = GROUP + "getPromotionGift";//领取奖品动作
        public static final String GET_PROMOTION_GIFT_VIEW = GROUP + "getPromotionGiftView";//领取奖品视图（get）
        public static final String MY_PROMOTION = GROUP + "myPromotion";//获取参加过的活动[废弃](get)
        public static final String MY_SHARE_PROMOTION = GROUP + "mySharePromotion";//用户参加过的分享活动[废弃]（get）
        public static final String MY_PROMOTION_NEW = GROUP + "myPromotionList";//用户参加过的活动(新)（get）
        public static final String MY_PROMOTION_CHOUJIANG = GROUP + "awardPromotion";//获取抽奖活动（get）
        public static final String MY_PROMOTION_CHOUJIANG_ACTION = GROUP + "getPromotionGift";//领取奖品动作
        public static final String MY_PROMOTION_CHOUJIANG_VIEW = GROUP + "getPromotionGiftView";//领取奖品视图(get)

        public static final String MY_PROMOTION_SHARE = GROUP + "sharePromotion";//获取分享活动（get）
        public static final String MY_PROMOTION_SHARE_RETNRN = GROUP + "sharePromotionReturn";//用户分享活动信息回调（get）
    }

    public static final class PUBLIC {
        private static final String GROUP = BASE + "public/";

        public static final String GET_CUSTOMER_OPTION = GROUP + "getAllTags";//获取所有标签（get）

    }

    public static final class REALNAME {
        private static final String GROUP = BASE + "realname/";//实名认证

        public static final String INFO = GROUP + "info";//获取实名认证信息（get）
        public static final String SAVE = GROUP + "save";//提交认证信息
    }

    public static final class SESSION {
        private static final String GROUP = BASE + "session/";

        public static final String GET = GROUP + "getSession";//获取session（get）
    }

    public static final class WISHLIST {
        private static final String GROUP = BASE + "wishlist/";//收藏

        public static final String LIST = GROUP + "list";//获取收藏/关注列表(get)
        public static final String ISIN = GROUP + "isIn";//判断商品是否收藏(get)
        public static final String ADD = GROUP + "add";//添加收藏
        public static final String REMOVE = GROUP + "remove";//取消收藏
    }
    public static final class EXP {
        public static final String GROUP = BASE + "experience/";
        public static final String MYExperience = GROUP + "myExperience";
    }
    public static final class EXCHANGE{
        public static final String GROUP = BASE + "point/exchange/";
        public static final String EXC = GROUP + "exchange";
        public static final String HISTORYLIST = GROUP + "historyList";
        public static final String PRODUCTS = GROUP + "products";
        public static final String PRODUCTTOEXCHANGDETAIL = GROUP + "productToExchangeDetail";
    }
    /**
     * 积分税换支付
     */
    public static final class INTEGRALPAY{
        public static final String GROUP = BASE+ "point/exchange/pay/";
        public static final String ALIPAY = GROUP +"alipay";
        public static final String WECHATPAY = GROUP + "wechatpay";
    }
}
